import React, { Component } from 'react'

export default class ImageShow extends Component {
    render() {
        return (
            <div style={{
                width: 1200,
                position: 'absolute',
                height: 500,
                float: 'left',
                left: (this.props.turnIndex === this.props.index ? `0px` :'-720px'),
                zIndex: (this.props.turnIndex === this.props.index ? 99 : 1),
                transitionDuration: '.8s',
            }} className="removeFloat">
                <img src={this.props.img} alt={this.props.decoration} style={{
                    width: 1200,
                    height: 600
                }}/>
            </div>
        )
    }
}
